home *** CD-ROM | disk | FTP | other *** search
/ Kit PC World De Ampliacion De Windows 95 / Kit PC World de ampliacion de Windows 95.iso / lotus / lotus022.dsk / SURFNET.MPR / SCRIPT / ApproachDoc / Setup.s (.txt) < prev    next >
Null Bytes Alternating  |  1995-11-13  |  2KB  |  33 lines

  1. '++LotusScript Development Environment:2:5:(Options):0:66
  2.  
  3. '++LotusScript Development Environment:2:5:(Forward):0:1
  4. Declare Sub Switchto(Source As Form, View As VIEW)
  5.  
  6. '++LotusScript Development Environment:2:5:(Declarations):0:2
  7.  
  8. '++LotusScript Development Environment:2:2:BindEvents:1:129
  9. Private Sub BindEvents(Byval Objectname_ As String)
  10.     Static Source As FORM
  11.     Set Source = Bind(Objectname_)
  12.     On Event Switchto From Source Call Switchto
  13. End Sub
  14.  
  15. '++LotusScript Development Environment:2:2:Switchto:1:12
  16. Sub Switchto(Source As Form, View As VIEW)
  17.     On Error 11026 Goto NoWebster
  18.     
  19.     Source.Body.fldProxyServer.ReadOnly = False
  20.     Source.Body.fldProxyPort.ReadOnly = False
  21.     CurrentDocument.Setup.Body.fldProxyServer.Text = CurrentDocument.Webster~ Browser.Body.oleWebster.ProxyServerHTTP
  22.     CurrentDocument.Setup.Body.fldProxyPort.Text = Str(CurrentDocument.Webster~ Browser.Body.oleWebster.ProxyPortHTTP)
  23.     Source.Body.btnProxySave.Enabled = True
  24.     Goto EndLoadPage
  25.     
  26. NoWebster:
  27.     Source.Body.fldProxyServer.ReadOnly = True
  28.     Source.Body.fldProxyPort.ReadOnly = True
  29.     Source.Body.btnProxySave.Enabled = False
  30.     Resume EndLoadPage
  31.     
  32. EndLoadPage:
  33. End Sub